package sctu.edu.java.year2016.team08.chenruixiu.day20160521.chapter6_3;
import java.util.Date;
/**在项目中创建DateAndTime类，讲今天的全部信息格式化输出，再将日期以”年—月—日“的格式输出
 * Created by Administrator on 2016/5/21.
 */
public class DateAndTime {
    public static void main(String[] args) {

        Date date = new Date();
        System.out.println(String.format("%tc", date));
        System.out.println(String.format("%tF", date));
    }
}
